package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author wjming
 * @ClassName: Group
 * @Description: 群组对象
 * @Date 2021-07-08 13:22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`tbl_group`")
public class Group extends BaseDoClass implements Serializable {
    /**
     * 家庭ID
     */
    @TableField(value = "`home_id`")
    private String homeId;

    /**
     * 网关MAC
     */
    @TableField(value = "`gateway_mac`")
    private String gatewayMac;

    /**
     * 群组名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 群组类型
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 群组编号
     */
    @TableField(value = "`code`")

    private String code;

    /**
     * 上一次的配置参数
     */
    @TableField(value = "`action`")
    private String action;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_HOME_ID = "home_id";

    public static final String COL_NAME = "name";

    public static final String COL_TYPE = "type";

    public static final String COL_CODE = "code";

    public static final String COL_ACTION = "action";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}
